@model IEnumerable<lucienneCRMApp.Models.GuestBookEntry>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Back to Home Page", "Index", "Home")
</p>
<table>
    <tr>
        <th>
            NameSurname
        </th>
        <th>
            Email
        </th>
        <th>
            Message
        </th>
        <th>
            Posted
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        
        <td>
			@item.NameSurname
        </td>
        <td>
			@item.Email
        </td>
        <td>
			@item.Message
        </td>
        <td>
			@String.Format("{0:g}", item.Posted)
        </td>
    </tr>
}

</table>


